//
//  ImageViewCollectionViewCell.m
//  B
//
//  Created by Sunpeng on 15/11/9.
//  Copyright © 2015年 wangzhan. All rights reserved.
//

#import "ImageViewCollectionViewCell.h"

@implementation ImageViewCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.myImageView = [[UIImageView alloc] init];
        
        [self.contentView addSubview:self.myImageView];
      
        
        self.myView = [[UIView alloc] init];
        [self.contentView addSubview:self.myView];
        self.myView.backgroundColor = [UIColor blackColor];
        self.myView.alpha = 0.5;
        
        self.textLabel = [[UILabel alloc] init];
        self.textLabel.font = [UIFont systemFontOfSize:14*XHIGHT];
        self.textLabel.textColor = [UIColor whiteColor];
        self.textLabel.numberOfLines = 0;
        [self.myView addSubview:self.textLabel];
        
        
        self.timeLabel = [[UILabel alloc] init];
        [self.myView addSubview:self.timeLabel];
        self.timeLabel.textColor = [UIColor whiteColor];
        self.timeLabel.font = [UIFont systemFontOfSize:14*XHIGHT];
        
    }
    return self;
}


@end
